<?php if(isset($theme)): ?>
    <div class="left">
        <?php if(isset($theme->prev) and $theme->prev != 0): ?>
            <?php echo CHtml::link(Theme::model()->findByPk($theme->prev)->title,'/theme/'.$theme->prev); ?>
        <?php endif; ?>
    </div>
    <div class="right"> 
        <?php if(isset($theme->next) and $theme->next != 0):?>
              <?php echo CHtml::link(Theme::model()->findByPk($theme->next)->title,'/theme/'.$theme->next); ?>
        <?php endif; ?>
        
<?php 
    $this->breadcrumbs = Theme::getBreadCrumsByThemeId($theme->id); 
?>
    </div>  
    <div class="clear"></div><br />
    <!--<h1><?php  //echo $theme->title;?></h1>-->
<div class="theme_body"><?php echo $theme->body; ?></div>
<?php endif; ?>
